//
//  YLBindingInformationViewModel.m
//  YLFinanceService
//
//  Created by she1323 on 2017/9/2.
//  Copyright © 2017年 she1323. All rights reserved.
//  绑定信息

#import "YLBindingInformationViewModel.h"
#import "YLGlobeHeader.h"

@implementation YLBindingInformationViewModel
- (NSArray<YLIconTitleModelGroup *> *)groups
{
    if (!_groups) {
        _groups = [[NSMutableArray array] init];
        // 第一组
        {
            YLIconTitleModelGroup *group = [[YLIconTitleModelGroup alloc] init];
            YLIconTitleContentModel *model = [YLIconTitleContentModel modelWithIcon:@"realNameAuthentication" title:@"实名认证" content:@"已认证" clickBlock:^NSString *{
                return @"YLRealNameInformationViewController";
            }];
            model.contentColor = YLLOrgColor;
            
            [group.models addObject:model];
            
            [_groups addObject:group];
        }
        
        // 第二组
        {
            YLIconTitleModelGroup *group = [[YLIconTitleModelGroup alloc] init];
            
            YLIconTitleContentModel *model = [YLIconTitleContentModel modelWithIcon:@"bandCard" title:@"银行卡" content:@"已绑定" clickBlock:^NSString *{
                return @"YLMyBankCardListViewController";
               // return @"YLCertifiedPaymentViewController";
            }];
            model.contentColor = YLLOrgColor;
            
            [group.models addObject:model];
            [_groups addObject:group];
            

        }
        
        
    }
    return _groups;
}

@end
